import Dao.impl.BookDaoImol;
import Dao.impl.StudentDaoImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.sql.DataSource;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx=new ClassPathXmlApplicationContext("application.xml");
//        DataSource dataSource = ctx.getBean("dataSource", DataSource.class);
//        System.out.println(dataSource);
//        BookDaoImol bookDao = ctx.getBean("bookDao", BookDaoImol.class);
//        bookDao.save();
        StudentDaoImpl studentDao = ctx.getBean("studentDao", StudentDaoImpl.class);
        studentDao.save();
    }
}
